package com.simplegui.api.util;

import java.awt.Point;

public class MathUtils {
	
	public static Double[] angle_to_vector(double ang){
	    return new Double[]{new Double(Math.cos(ang)), new Double(Math.sin(ang))};
	}

	public static double dist(Point p, Point q){
		return Math.sqrt((p.x - q.x) * 2 + (p.y - q.y) * 2);
	}


}
